package result

import (
	"html/template"
	"time"
)

type ResultEntity struct {
	Version      string
	DownloadLink string
	Datetime     time.Time       `json:"datetime"`
	Xts          XtsResult       `json:"xts"`
	Benchmark    BenchMarkResult `json:"benchmark"`
}

type FailureCase struct {
	Name   string `json:"name"`
	Reason string `json:"reason"`
}

type XtsResult struct {
	Total           int           `json:"total"`
	FailureNum      int           `json:"failureNum"`
	FailureTestCase []FailureCase `json:"failureTestCase"`
}

type BenchMarkResult struct {
	MuslBenchmark   template.HTML `json:"muslBenchmark"`
	BionicBenchmark template.HTML `json:"bionicBenchmark"`
}

type LineChart struct {
	Date  []string `json:"date"`
	Times []string `json:"times"`
}
